Class AvgBitLength
java.lang.Object
edu.claflin.finder.algo.clustering.struct.infomap_struct.AvgBitLength
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculates average bit length for random path of this graphGenerates a path taken by random walker.voidvoidsetModules(Map<Integer, List<Node>> modules) private doubletotalExitCodes(Map<Integer, Integer> moduleFrequency) private doubleprivate doubletotalModuleFreq(Map<Integer, Integer> moduleFrequency) private doubletotalModuleNodeFreq(List<Node> moduleNodes) private doubletotalNodeFreq(List<Node> nodes)
-
Field Details
-
MULTIPLIER
private static final int MULTIPLIER- See Also:
-
graph
-
randomPath
-
modules
-
nodeToModule
-
-
Constructor Details
-
AvgBitLength
-
-
Method Details
-
setGraph
-
setModules
-
randomWalker
Generates a path taken by random walker. Will be used to calculate average bit length -
testRandomWalker
-
avgBitLength
public double avgBitLength()Calculates average bit length for random path of this graph- Returns:
-
totalModuleCode
-
totalModuleFreq
-
totalExitCodes
-
totalNodeFreq
-
totalModuleNodeFreq
-